package org.dromara.event.domain.vo;

import java.util.Date;

import org.dromara.event.domain.EnergyConsumption;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 能耗统计视图对象 energy_consumption
 *
 * @author YI LH
 * @date 2025-05-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EnergyConsumption.class)
public class EnergyConsumptionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 设备id
     */
    @ExcelProperty(value = "设备id")
    private Long deviceId;

    /**
     * 能源类型（0水 1电）
     */
    @ExcelProperty(value = "能源类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=水,1=电")
    private String energyType;

    /**
     * 实际消耗量
     */
    @ExcelProperty(value = "实际消耗量")
    private Long actualUsage;

    /**
     * 预测消耗量
     */
    @ExcelProperty(value = "预测消耗量")
    private Long predictedUsage;

    /**
     * 记录日期
     */
    @ExcelProperty(value = "记录日期")
    private Date recordDate;


}
